using System;

namespace Camalon.Drawing.Samples.CSharp
{
	/// <summary>
	/// Summary description for Cylinder.
	/// </summary>
	[System.ComponentModel.ToolboxItem(true)]
	public class Cylinder:ShapeContainer
	{
		private Camalon.Drawing.Shapes.RectangleShape rectangleShape1;
		private Camalon.Drawing.PathGradientFill pathGradientFill1;
		private Camalon.Drawing.LinearGradientFill linearGradientFill1;
		private Camalon.Drawing.ShapePen shapePen1;
		private Camalon.Drawing.Shapes.Ellipse ellipse1;
	
		private void InitializeComponent()
		{
            this.ellipse1 = new Camalon.Drawing.Shapes.Ellipse();
            this.pathGradientFill1 = new Camalon.Drawing.PathGradientFill();
            this.shapePen1 = new Camalon.Drawing.ShapePen();
            this.linearGradientFill1 = new Camalon.Drawing.LinearGradientFill();
            this.rectangleShape1 = new Camalon.Drawing.Shapes.RectangleShape();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // ellipse1
            // 
            this.ellipse1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.ellipse1.Fill = this.pathGradientFill1;
            this.ellipse1.Pen = this.shapePen1;
            this.ellipse1.Position = new System.Drawing.Point(50, 50);
            this.ellipse1.Size = new System.Drawing.Size(130, 60);
            // 
            // pathGradientFill1
            // 
            this.pathGradientFill1.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.AntiqueWhite),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.IndianRed, 0.3F),
        new Camalon.Drawing.CompoundColor(System.Drawing.SystemColors.InactiveCaption, 1F)};
            // 
            // shapePen1
            // 
            this.shapePen1.Fill = this.linearGradientFill1;
            // 
            // linearGradientFill1
            // 
            this.linearGradientFill1.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.AntiqueWhite),
        new Camalon.Drawing.CompoundColor(System.Drawing.SystemColors.InactiveCaption, 0.3F),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.IndianRed, 1F)};
            // 
            // rectangleShape1
            // 
            this.rectangleShape1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.rectangleShape1.BottomLeft = new Camalon.Drawing.Corner(0.5294118F, 0.2105263F);
            this.rectangleShape1.BottomRight = new Camalon.Drawing.Corner(0.5294118F, 0.2105263F);
            this.rectangleShape1.Fill = this.linearGradientFill1;
            this.rectangleShape1.Position = new System.Drawing.Point(50, 80);
            this.rectangleShape1.Size = new System.Drawing.Size(130, 190);
            // 
            // Cylinder
            // 
            this.PaintChildsOnly = true;
            this.Position = new System.Drawing.Point(50, 50);
            this.Shapes.AddRange(new Camalon.Drawing.Shape[] {
            this.rectangleShape1,
            this.ellipse1});
            this.Size = new System.Drawing.Size(130, 220);
            this.TextFill = this.pathGradientFill1;
            this.TextPen = this.shapePen1;
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

		}
	

//		public Cylinder(System.ComponentModel.IContainer container)
//		{
//			///
//			/// Required for Windows.Forms Class Composition Designer support
//			///
//			container.Add(this);
//			InitializeComponent();
//
//		}

		public Cylinder()
		{
			InitializeComponent();
		}
	}
}
